<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
	<title>BSS Patient Photograph</title>
	<script>
	function clicked(im) {
		try {
			window.dialogArguments.setImage(im);
		}catch(e) {
			//alert('Error while trying setImage() '+e);
			try {
				window.opener.doSubmit(im);
			}catch(e) {
				alert('Error while trying doSubmit() '+e);
			}
		}
		window.close();
	}	
	</script>
	</head>
	<body>
		<table align="center">
			<tr>
				<td valign="top" align="center">
					<object id="photoUploader1" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="320" height="240">
						<param name="movie" value="PhotoUploader.swf" />
						<param name="flashVars" value="uploadCompletionHandler=clicked&uploaderUrl=<%=request.getContextPath()%>/bss/images/click2" />
						<param name="allowScriptAccess" value="always" />

						<embed width="320" height="240" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" 
						type="application/x-shockwave-flash" allowscriptaccess="sameDomain" name="photoUploader1"
						bgcolor="#ffffff" quality="high" src="PhotoUploader.swf" flashVars="uploadCompletionHandler=clicked&uploaderUrl=<%=request.getContextPath()%>/bss/images/click2">

					</object>
				</td>
			</tr>			
		</table>		
	</body>
</html>
